package it.unipi.di.rasip.gui.tabs;

public class Tab {
	int bgColor;
	int bgFocusedColor;
	int foreColor;
	int foreFocusedColor;
	
	float x, y, width, height;
	
	String name;
	int id;

	public Tab (String name) {
		this(-1, name);
	}
	
	public Tab (int id, String name) {
		this.id = id;
		this.name = name;
		
		//Colors
		bgColor = 0xcccccc;
		bgFocusedColor = 0x0000ff;
		foreColor = 0x000000;
		foreFocusedColor = 0xffffff;
		
		this.autoSize();
	}
	
	public void autoSize() {
		//TEMP
		width = 70;
		height = 25;
	}

	public int getBgColor() {
		return bgColor;
	}

	public void setBgColor(int bgColor) {
		this.bgColor = bgColor;
	}

	public int getBgFocusedColor() {
		return bgFocusedColor;
	}

	public void setBgFocusedColor(int bgFocusedColor) {
		this.bgFocusedColor = bgFocusedColor;
	}

	public int getForeColor() {
		return foreColor;
	}

	public void setForeColor(int foreColor) {
		this.foreColor = foreColor;
	}

	public int getForeFocusedColor() {
		return foreFocusedColor;
	}

	public void setForeFocusedColor(int foreFocusedColor) {
		this.foreFocusedColor = foreFocusedColor;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getHeight() {
		return height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	public float getWidth() {
		return width;
	}

	public void setWidth(float width) {
		this.width = width;
	}

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}
	
	public void setPosition(float x, float y) {
		this.x = x;
		this.y = y;
	}
	
	public void setSize(float width, float height) {
		this.width = width;
		this.height = height;
	}
}
